package com.mimosa.common.message;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {
	
	private final static int MAX_LINK_NUMBER=1;
	
	private final static ExecutorService ES = Executors.newFixedThreadPool(MAX_LINK_NUMBER);
	
	private ThreadPool(){
	}
	
	public static ExecutorService getEs() {
		return ES;
	}
	
	public static int getMaxLinkNumber() {
		return MAX_LINK_NUMBER;
	}
	
	public static void run(Thread thread){
		ES.execute(thread);
	}
	
}
